<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="/Show/Admin/Public/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/Show/Admin/Public/js/jquery-3.1.1.min.js"></script>
    <title>角色权限分配</title>
  </head>
  <body>
    <a href="{$smarty.const.__MODULE__}/Role/showlist" target="_self">[返回]</a>
    <form action="{$smarty.const.__SELF__}" method="post">
    <div class="mainbox">
          <div class="tablebox">            
            <table class="table" >
              <tr class="one">
                <td>
                    角色权限分配->【{$role.role_name}】
                    <input type="hidden" name="role_id" value="{$role.role_id}">
                </td>              
              </tr>
              {section name=f loop=$flist}
              <tr>
                  <td>
                      <input type="checkbox" name="auth_id[]" value="{$flist[f].auth_id}" {if in_array($flist[f].auth_id,$auths)} checked="checked" {/if} >
                      <strong>{$flist[f].auth_name}</strong>
                  </td>
              </tr>            
              <tr>
                <td>
                {section name=z loop=$zlist}
                {if $flist[f].auth_id==$zlist[z].auth_pid}              
                    &nbsp;&nbsp;<input type="checkbox" name="auth_id[]" value="{$zlist[z].auth_id}" {if in_array($zlist[z].auth_id,$auths)} checked="checked" {/if} > {$zlist[z].auth_name}               
                {/if}
                {/section}
              {/section}
               </td>
              </tr>
              <tr>
                  <td>
                      <input type="submit" value="确定">
                  </td>
              </tr>
            </table>          
          </div>
    </div>
    </form>
  </body>
</html>